<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'object-form',
	'enableAjaxValidation'=>false,
)); ?>
	<div class="col1 fl">
		<div class="row cl">
			<?php echo $form->errorSummary($model); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'room_type_id'); ?>
			<div class="select">
				<?php echo $form->dropDownList($model,'room_type_id',CSelect::items('RoomType'),  array( 'empty' => (Yii::t('main', 'Select a room type')) )); ?>
				<?php echo $form->error($model,'room_type_id'); ?>
			</div>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'bed_type_id'); ?>
			<div class="select">
				<?php echo $form->dropDownList($model,'bed_type_id',CSelect::items('BedType'),  array( 'empty' => (Yii::t('main', 'Select a bed type')) )); ?>
				<?php echo $form->error($model,'bed_type_id'); ?>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'accommodates'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'accommodates'); ?>
				<?php echo $form->error($model,'accommodates'); ?>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'bedrooms'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'bedrooms'); ?>
				<?php echo $form->error($model,'bedrooms'); ?>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'size'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'size'); ?>
				<?php echo $form->error($model,'size'); ?>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'minimum_stay'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'minimum_stay'); ?>
				<?php echo $form->error($model,'minimum_stay'); ?>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'extra_people_guest'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'extra_people_guest'); ?>
				<?php echo $form->error($model,'extra_people_guest'); ?>
			</div>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'currency_id'); ?>
			<div class="select">
				<?php echo $form->dropDownList($model,'currency_id',CSelect::items('Currency', 'short_name'),  array( 'empty' => (Yii::t('main', 'Select a currency')) )); ?>
				<?php echo $form->error($model,'currency_id'); ?>
			</div>
		</div>
		<div class="row cl">
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'price'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'price'); ?>
					<?php echo $form->error($model,'price'); ?>
				</div>
			</div>
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'price_week'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'price_week'); ?>
					<?php echo $form->error($model,'price_week'); ?>
				</div>
			</div>
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'price_month'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'price_month'); ?>
					<?php echo $form->error($model,'price_month'); ?>
				</div>
			</div>
		</div>
		<div class="row cl">
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'price_extra_people'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'price_extra_people'); ?>
					<?php echo $form->error($model,'price_extra_people'); ?>
				</div>
			</div>
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'price_security_deposit'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'price_security_deposit'); ?>
					<?php echo $form->error($model,'price_security_deposit'); ?>
				</div>
			</div>
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'price_clean'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'price_clean'); ?>
					<?php echo $form->error($model,'price_clean'); ?>
				</div>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'check_in'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'check_in'); ?>
				<?php echo $form->error($model,'check_in'); ?>
			</div>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'check_out'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'check_out'); ?>
				<?php echo $form->error($model,'check_out'); ?>
			</div>
		</div>

		
		
		<div class="row">
			<?php echo $form->labelEx($model,'house_rules'); ?>
			<div class="textarea">
				<?php echo $form->textArea($model,'house_rules',array('rows'=>6)); ?>
				<?php echo $form->error($model,'house_rules'); ?>
			</div>
		</div>

		<input type="hidden" name="object_id" value="<?php echo $model->id; ?>" />
		<input type="hidden" name="step" value="2" />
		<input type="hidden" name="next_step" value="3" />

		<div class="btn blue br3 fl">
			<?php echo CHtml::submitButton($model->isNewRecord ? 'Continue' : 'Save'); ?>
		</div>
	</div>
<?php $this->endWidget(); ?>